package com.lanchetech.dao;
import org.apache.ibatis.annotations.Param;
import com.lanchetech.bean.request.PageReq;
import com.lanchetech.bean.response.CoinDeductionResp;

import java.util.List;

import com.lanchetech.entity.CoinDeduction;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface CoinDeductionMapper {
    int deleteByPrimaryKey(Long id);

    int insert(CoinDeduction record);

    int insertSelective(CoinDeduction record);

    CoinDeduction selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(CoinDeduction record);

    int updateByPrimaryKey(CoinDeduction record);

    List<CoinDeductionResp> findAllPage(PageReq req);

    CoinDeduction findOneBySpuId(@Param("spuId")Long spuId);

    CoinDeduction findOneActive(@Param("spuId")Long spuId);


}